package edu.zju.gis.dbfg.fileserver.mapper;

import edu.zju.gis.dbfg.common.base.BaseMapper;
import edu.zju.gis.dbfg.fileserver.interceptor.UserAuth;
import edu.zju.gis.dbfg.fileserver.model.ConstructedDataset;

import java.util.List;

public interface ConstructedDatasetMapper extends BaseMapper<ConstructedDataset, String> {
    int deleteByPrimaryKey(String id);

    int insert(ConstructedDataset record);

    int insertSelective(ConstructedDataset record);

    ConstructedDataset selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(ConstructedDataset record);

    int updateByPrimaryKey(ConstructedDataset record);

    int updateSizeById(ConstructedDataset record);

    List<ConstructedDataset> selectAll(String userId);
    List<ConstructedDataset> selectAllFinish(String userId);
    @UserAuth
    List<ConstructedDataset> selectAllPublicFinish(String userId);

}
